<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Order_info extends Model
{
    protected $table = "order_info";

    //查询大订单下小订单的信息
    public function listorder($id)
    {
        $ob = $this->where('order_id', $id)->get();
        if ($ob->count() > 0) {
            return $ob;
        } else {
            return null;
        }

    }

}


